package com.linoer.cloud.alo.storageservice.service;

import com.linoer.cloud.alo.common.domain.ObjectResponse;
import com.linoer.cloud.alo.common.domain.dto.StorageDTO;
import com.linoer.cloud.alo.common.service.dubbo.StorageDubboService;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @Classname StorageDubboService
 * @Description TODO
 * @Date 2021/6/23 11:23 上午
 * @Created by muhenglv
 */
@Service(version = "1.0.0", timeout = 3000)
public class StorageDubboServiceImp implements StorageDubboService {

    @Autowired
    private StorageServiceImp storageServiceImp;

    @Override
    public ObjectResponse decreaseStorage(StorageDTO storage) {
        return storageServiceImp.deduct(storage);
    }
}
